package com.sgam.mf.reports;

import java.io.ByteArrayOutputStream;

import javax.servlet.http.HttpServletResponse;

import net.sf.jasperreports.engine.JasperPrint;

public interface ExporterService {

	public static final String MEDIA_TYPE_EXCEL = "application/vnd.ms-excel";
	public static final String MEDIA_TYPE_PDF = "application/pdf";
	public static final String MEDIA_TYPE_DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
	public static final String EXTENSION_TYPE_EXCEL = "xls";
	public static final String EXTENSION_TYPE_PDF = "pdf";
	public static final String EXTENSION_TYPE_DOCX = "docx";

	public abstract HttpServletResponse export(String type, JasperPrint jp,
			HttpServletResponse response, ByteArrayOutputStream baos);

	public abstract void exportXls(JasperPrint jp, ByteArrayOutputStream baos);

	public abstract void exportPdf(JasperPrint jp, ByteArrayOutputStream baos);

	public abstract void exportDocx(JasperPrint jp, ByteArrayOutputStream baos);

}